package Demo;

import sun.reflect.generics.tree.Tree;

import java.util.TreeSet;

/**
 * @author げっしょく
 * @date 2021/7/26
 */
public class Test1 {
    public static void main(String[] args) {
        TreeSet<Student> ts = new TreeSet<>();
        ts.add(new Student("zhangsan", 98, 87, 60));
        ts.add(new Student("zhangsan", 76, 80, 90));
        ts.add(new Student("zhangsan", 100, 100, 100));
        ts.add(new Student("zhangsan", 72, 69, 98));
        System.out.println(ts);
    }
}
